package com.dreamfire.io
{
	import com.dreamfire.io.input.KeyboardManager;
	import com.dreamfire.io.input.MouseManager;
	import com.dreamfire.io.input.TouchManager;
	import com.dreamfire.io.net.ServerManager;

	public class IOManager
	{
		private static var _instance:IOManager;
		
		private var keyboardManager:KeyboardManager = null;
		private var mouseManager:MouseManager = null;
		private var touchManager:TouchManager = null;
		
		private var serverManager:ServerManager = null;
		
		public function IOManager()
		{
			keyboardManager = KeyboardManager.instance;
			mouseManager = MouseManager.instance;
			touchManager = TouchManager.instance;
			
			serverManager = ServerManager.instance;
			serverManager.connect();
		}
		
		public static function get instance():IOManager
		{
			if(_instance == null)
				_instance = new IOManager();
			return _instance;
		}
	}
}